﻿using System.Collections.Generic;
using cludg.Infrastructure.Core.Attributes;
using cludg.Infrastructure.DI;

namespace cludg.Web.Core.Modules
{
	public class ModuleManager : IModuleManager
	{
		[Dependency]
		public IDIContainer Container { get; set; }

		public IEnumerable<IModule> RegisteredModules()
		{
			return Container.ResolveAll<IModule>();
		}
	}
}
